<?php

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=118.190.46.215;dbname=xiaofenghappiness',
    'username' => 'titarzhe',
    'password' => 'titarzheauth',
    'charset' => 'utf8mb4',

    'queryBuilder' => [
        'expressionBuilders' => [
            'app\db\conditions\JsonCondition' => 'app\db\conditions\JsonConditionBuilder'
        ],
        'conditionClasses' => [
            'JSON EQ' => 'app\db\conditions\JsonCondition',
            'JSON LIKE'=> 'app\db\conditions\JsonCondition',
        ]
    ]

    // Schema cache options (for production environment)
    //'enableSchemaCache' => true,
    //'schemaCacheDuration' => 60,
    //'schemaCache' => 'cache',
];
